import request from '@/utils/request'

export function productCateList(data) {
  return request({
    url: '/v1/find/product/categlory/by/example',
    method: 'post',
    data
  })
}

export function fetchOne(data) {
  return request({
    url: '/v1/product/categlory/get/by/id',
    method: 'post',
    data
  })
}

export function createCate(data) {
  return request({
    url: '/v1/add/product/categlory',
    method: 'post',
    data
  })
}

export function deleteCate(data) {
  return request({
    url: `/v1/delete/product/categlory/by/id`,
    method: 'post',
    data
  })
}

export function updataCate(data) {
  return request({
    url: `/v1/update/product/categlory`,
    method: 'post',
    data
  })
}

export function changeState(data) {
  return request({
    url: `/v1/product/categlory/update/hidden`,
    method: 'post',
    data
  })
}
